<?php
class Form_acct_add extends QForm
{
	function __construct($action)
	{
		// 调用父类的构造函数
		parent::__construct(__CLASS__, $action);
		// 从配置文件载入表单
		$filename = rtrim(dirname(__FILE__), '/\\') . DS . strtolower(__CLASS__).'.yaml';
		$this->loadFromConfig(Helper_YAML::loadCached($filename));
		$this->addValidations(Acct::meta());
	//	$this['acctname']->addValidations(array($this,'check_required'),'数据库已经存在此账号！');
	}	
	
	function check_required()
	{
		dump($this);
		exit();
	}
}
?>
